package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "db_sales")
@ApiModel(value = "销售单实体类")
public class Sales implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "Sales_id",type = IdType.AUTO)
    @ApiModelProperty(value = "销售单唯一编号")
    private String id;

    @TableField(value = "Sales_Goods_univalence")
    @ApiModelProperty(value = "商品单价")
    private Integer equivalence;

    @TableField(value = "Sales_Goods_money")
    @ApiModelProperty(value = "销售总金额")
    private Integer money;

    @TableField(value = "Sales_amount")
    @ApiModelProperty(value = "销售数量")
    private String amount;

    @TableField(value = "Sales_Goods_name")
    @ApiModelProperty(value = "销售单商品")
    private String GoodsName;

    @TableField(value = "Sales_Customer_name")
    @ApiModelProperty(value = "销售单客户名称")
    private String CustomerName;


    @TableField(value = "Sales_staff")
    @ApiModelProperty(value = "销售单经手人")
    private String staff;



}
